@import '~scss/variables';
@import '~scss/mixins';

.pipelineCard {
  width: 256px;
  text-align: center;
  white-space: normal;
  user-select: none;
}

.pipelineCard__title {
  display: inline-block;
  position: relative;
  top: 18px;
  padding-left: 20px;
  padding-right: 20px;
  height: 32px;
  max-width: 100%;

  font-size: 12px;
  font-weight: 500;
  line-height: 32px;
  color: #ffffff;

  border-radius: 16px;
  background-color: #242e42;

  @include ellipsis;
}

.pipelineCard__title-error {
  background-color: #ca2621;
}

.pipelineCard__content {
  padding: 22px 12px 20px;
  text-align: left;
  border-radius: $border-radius;
  background-color: #ffffff;
  box-shadow: 0 4px 8px 0 rgba(36, 46, 66, 0.06);
  border: 1px solid transparent;
}

.pipelineCard-error {
  border-color: #ca2621;
}

.errorTip {
  color: #ca2621;
  padding: 4px;
}

.pipelineCard-active {
  border: 1px solid $green;
  box-shadow: 0 6px 16px 0 rgba(33, 43, 54, 0.2);
}

.pipelineCard__item {
  padding: 4px 12px;
  margin-bottom: 8px;
  line-height: 20px;
  border-radius: 4px;
  border: 4px solid white;
  background-color: $lightest;

  @include break-all;

  .content__title {
    font-weight: 500;
    color: #329dce;
  }
  .content__title__error {
    color: #ca2621;
  }
  .content__detail {
    color: #242e42;
  }
}

.pipeline_column {
  display: inline-block;
  // width: 300px;
  margin: 0 10px;

  vertical-align: top;
}

.addSteps {
  width: 100%;
  height: 32px;
  border-radius: 4px;
  padding: 5px;
  background-color: #ffffff;
  border: dashed 1px #d8dee5;
  user-select: none;
  cursor: pointer;

  span {
    margin-top: -2px;
  }

  &:hover {
    background-color: $bg-color;
    border: dashed 1px #329dce;
    border-color: #51a6d3;
  }
}

.addBranchCard {
  padding-left: 12px;
  margin-top: 15px;
  height: 32px;
  line-height: 32px;
  color: #5f708a;
  border-radius: 4px;
  background-color: #ffffff;
  border: dashed 1px #d8dee5;
  user-select: none;
  .icon {
    vertical-align: middle;
    margin-right: 8px;
  }
  &:hover {
    border: dashed 1px #329dce;
    background-color: $bg-color;
  }
}

.conditions {
  background-color: #ffefb14f;
  padding: 8px;
  padding-top: 2px;
}

.nestStage_content {
  position: relative;
  display: flex;
  padding-left: 8px;

  .indentBorder {
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background-color: #329dce;
  }
  .nestsStage_detail {
    background: white;
    width: 100%;
  }
}
